import { axios } from '@/utils/request'
let uri = process.env.NODE_ENV === 'production' ? '' : '/yb'

const api = {
    getSupplierBaseInfo: uri + '/monitor/supplier/getSupplierBaseInfo',
    getSupplierDetails: uri + '/monitor/supplier/getSupplierDetails',
    getSupplierDirTotal: uri + '/monitor/supplier/getSupplierDirTotal',
    getSupplierName: uri + '/monitor/supplier/getSupplierName',
    getSupplierProductInfo: uri + '/monitor/supplier/getSupplierProductInfo',
    getSupplierTotal: uri + '/monitor/supplier/getSupplierTotal',
    getAssetsTotalAmount: uri + '/monitor/assets/getAssetsTotalAmount',
    getAssetsTypeAmount: uri + '/monitor/assets/getAssetsTypeAmount',
    getServiceUnitsDetails: uri + '/monitor/evaluation/getServiceUnitsDetails',
    getServiceUnitsTotal: uri + '/monitor/evaluation/getServiceUnitsTotal',
    getServiceWindowDetails: uri + '/monitor/evaluation/getServiceWindowDetails',
    getServiceWindowTotal: uri + '/monitor/evaluation/getServiceWindowTotal',
    getWarningDetails: uri + '/monitor/warning/getWarningDetails',
    getWarningTotal: uri + '/monitor/warning/getWarningTotal',
    getWarningTypeTotal: uri + '/monitor/warning/getWarningTypeTotal',
    getVisitRank: uri + '/monitor/visit/getVisitRank', // 医生回访排名
    getVisitRecord: uri + '/monitor/visit/getVisitRecord', // 某个医生的回访记录
    getVisitRecordDetails: uri + '/monitor/visit/getVisitRecordDetails',
    getChargeDeptRate: uri + '/monitor/warning/getChargeDeptRate',
    getWarningData: uri + '/monitor/warning/getWarningData',
    getWarningDetailsList: uri + '/monitor/warning/getWarningDetailsList',
    getWarningDisposalRate: uri + '/monitor/warning/getWarningDisposalRate',
    getDeptRank: uri + '/monitor/evaluation/getDeptRank',
    getPersonalRank: uri + '/monitor/evaluation/getPersonalRank',
    getCoreIndexList: uri + '/monitor/coreIndex/getCoreIndexList',
    getCoreIndexDetails: uri + '/monitor/coreIndex/getCoreIndexDetails',
    getProcessTypeTotal: uri + '/monitor/process/getProcessTypeTotal',
    getProcessStatusTotal: uri + '/monitor/process/getProcessStatusTotal',
    getProcessStatusDetails: uri + '/monitor/process/getProcessStatusDetails',
    getWarningHaveDone: uri + '/monitor/warning/getWarningHaveDone',
    getWarningBacklog: uri + '/monitor/warning/getWarningBacklog',
    getWarningHaveDoneDetails: uri + '/monitor/warning/getWarningHaveDoneDetails',
    getWarningBacklogDetails: uri + '/monitor/warning/getWarningBacklogDetails',
    getEvaluationList: uri + '/monitor/evaluation/getEvaluationList',
    getDeclareTotal: uri + '/monitor/evaluation/getDeclareTotal',
    getInternalList: uri + '/monitor/evaluation/getInternalList',  // 内部满意度待办
    getMoralityBackLog: uri + '/monitor/evaluation/getMoralityBackLog', // 医德医风待办
    getMoralityTotal: uri + '/monitor/evaluation/getMoralityTotal', // 医德医风待审核
    getPatrolList: '/monitor/patrol/getPatrolList', // 移动巡查
    getPatrolListDetail: '/monitor/patrol/getPatrolListDetail',
    getPersonalItemDetails: '/monitor/evaluation/getPersonalItemDetails', // 个人考评项目明细
    getPersonalEventDetails: '/monitor/evaluation/getPersonalEventDetails', // 个人事件明细
    getEventDetails: '/monitor/evaluation/getEventDetails', // 科室事件详情
    getItemDetails: '/monitor/evaluation/getItemDetails', // 科室考评项目事件明细
}
export function getEventDetails(params) {
    return axios({
        url: api.getEventDetails,
        method: 'get',
        params
    })
}

export function getItemDetails(params) {
    return axios({
        url: api.getItemDetails,
        method: 'get',
        params
    })
}

export function getPersonalItemDetails(params) {
    return axios({
        url: api.getPersonalItemDetails,
        method: 'get',
        params
    })
}

export function getPersonalEventDetails(params) {
    return axios({
        url: api.getPersonalEventDetails,
        method: 'get',
        params
    })
}

// getPatrolListDetail
export function getPatrolListDetail(params) {
    return axios({
        url: api.getPatrolListDetail,
        method: 'get',
        params
    })
}

// getPatrolList
export function getPatrolList(params) {
    return axios({
        url: api.getPatrolList,
        method: 'get',
        params
    })
}

export function getMoralityTotal(params) {
    return axios({
        url: api.getMoralityTotal,
        method: 'get',
        params
    })
}

export function getMoralityBackLog(params) {
    return axios({
        url: api.getMoralityBackLog,
        method: 'get',
        params
    })
}

export function getInternalList(params) {
    return axios({
        url: api.getInternalList,
        method: 'get',
        params
    })
}


export function getDeclareTotal(params) {
    return axios({
        url: api.getDeclareTotal,
        method: 'get',
        params
    })
}

// getEvaluationList
export function getEvaluationList(params) {
    return axios({
        url: api.getEvaluationList,
        method: 'get',
        params
    })
}

export function getWarningHaveDoneDetails(params) {
    return axios({
        url: api.getWarningHaveDoneDetails,
        method: 'get',
        params
    })
}

export function getWarningBacklogDetails(params) {
    return axios({
        url: api.getWarningBacklogDetails,
        method: 'get',
        params
    })
}

// getWarningHaveDone
export function getWarningHaveDone(params) {
    return axios({
        url: api.getWarningHaveDone,
        method: 'get',
        params
    })
}

export function getWarningBacklog(params) {
    return axios({
        url: api.getWarningBacklog,
        method: 'get',
        params
    })
}

// getProcessStatusDetails
export function getProcessStatusDetails(params) {
    return axios({
        url: api.getProcessStatusDetails,
        method: 'get',
        params
    })
}

// getProcessStatusTotal
export function getProcessStatusTotal(params) {
    return axios({
        url: api.getProcessStatusTotal,
        method: 'get',
        params
    })
}

// getProcessTypeTotal
export function getProcessTypeTotal(params) {
    return axios({
        url: api.getProcessTypeTotal,
        method: 'get',
        params
    })
}

// getCoreIndexDetails
export function getCoreIndexDetails(params) {
    return axios({
        url: api.getCoreIndexDetails,
        method: 'get',
        params
    })
}

// getCoreIndexList
export function getCoreIndexList(params) {
    return axios({
        url: api.getCoreIndexList,
        method: 'get',
        params
    })
}

// getPersonalRank
export function getPersonalRank(params) {
    return axios({
        url: api.getPersonalRank,
        method: 'get',
        params
    })
}

export function getDeptRank(params) {
    return axios({
        url: api.getDeptRank,
        method: 'get',
        params
    })
}

export function getWarningDetailsList(params) {
    return axios({
        url: api.getWarningDetailsList,
        method: 'get',
        params
    })
}
export function getWarningDisposalRate(params) {
    return axios({
        url: api.getWarningDisposalRate,
        method: 'get',
        params
    })
}

// export function getWarningTotal(params) {
//     return axios({
//         url: api.getWarningTotal,
//         method: 'get',
//         params
//     })
// }

export function getWarningData(params) {
    return axios({
        url: api.getWarningData,
        method: 'get',
        params
    })
}

// getChargeDeptRate
export function getChargeDeptRate(params) {
    return axios({
        url: api.getChargeDeptRate,
        method: 'get',
        params
    })
}

// getVisitRecordDetails
export function getVisitRecordDetails(params) {
    return axios({
        url: api.getVisitRecordDetails,
        method: 'get',
        params
    })
}

export function getVisitRecord(params) {
    return axios({
        url: api.getVisitRecord,
        method: 'get',
        params
    })
}

export function getVisitRank(params) {
    return axios({
        url: api.getVisitRank,
        method: 'get',
        params
    })
}

export function getSupplierBaseInfo(params) {
    return axios({
        url: api.getSupplierBaseInfo,
        method: 'get',
        params
    })
}

export function getSupplierDetails(params) {
    return axios({
        url: api.getSupplierDetails,
        method: 'get',
        params
    })
}

export function getSupplierDirTotal(params) {
    return axios({
        url: api.getSupplierDirTotal,
        method: 'get',
        params
    })
}

export function getSupplierName(params) {
    return axios({
        url: api.getSupplierName,
        method: 'get',
        params
    })
}

export function getSupplierProductInfo(params) {
    return axios({
        url: api.getSupplierProductInfo,
        method: 'get',
        params
    })
}

export function getSupplierTotal(params) {
    return axios({
        url: api.getSupplierTotal,
        method: 'get',
        params
    })
}

export function getAssetsTotalAmount(params) {
    return axios({
        url: api.getAssetsTotalAmount,
        method: 'get',
        params
    })
}

export function getAssetsTypeAmount(params) {
    return axios({
        url: api.getAssetsTypeAmount,
        method: 'get',
        params
    })
}

export function getServiceUnitsDetails(params) {
    return axios({
        url: api.getServiceUnitsDetails,
        method: 'get',
        params
    })
}

export function getServiceUnitsTotal(params) {
    return axios({
        url: api.getServiceUnitsTotal,
        method: 'get',
        params
    })
}

export function getServiceWindowDetails(params) {
    return axios({
        url: api.getServiceWindowDetails,
        method: 'get',
        params
    })
}

export function getServiceWindowTotal(params) {
    return axios({
        url: api.getServiceWindowTotal,
        method: 'get',
        params
    })
}

export function getWarningDetails(params) {
    return axios({
        url: api.getWarningDetails,
        method: 'get',
        params
    })
}

export function getWarningTotal(params) {
    return axios({
        url: api.getWarningTotal,
        method: 'get',
        params
    })
}

export function getWarningTypeTotal(params) {
    return axios({
        url: api.getWarningTypeTotal,
        method: 'get',
        params
    })
}
